package com.dcy;

import com.dcy.dao.StudentDao;
import com.dcy.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

public class Starter {
    public static void main(String[] args) {
        SqlSession sqlSession = MyBatisUtil.getSqlSession();
        StudentDao studentDao = sqlSession.getMapper(StudentDao.class);
        Long countStudent = studentDao.countStudent();
        System.out.println(countStudent);
    }
}
